<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class CMIS extends CCMIS_Controller 
{
    public function __construct() 
	{
        parent::__construct();  
    }

    public function index()
    {
        $username = $this->session->userdata('username');
        if($username)
            $this->dashboard();
        else
            $this->home();
    }

    public function home()
    {
        $this->setup_view('cmis/cmis/home');
    }

    public function dashboard()
    {
        $data = array(
        "sample_usertype" => "admin"
            );
        $this->setup_view('cmis/cmis/dashboard', $data);
    }

    public function profile()
    {
        $this->setup_view('cmis/cmis/profile');
    }
}

?>
